<!-- 配置车辆弹窗 -->
<template>
  <div>
    <el-dialog
      title="配置车辆"
      :visible="isShow"
      width="60%"
    >
      <el-card
        shadow="never"
        class="infoCard"
      >
        <el-row>
          <el-col :span="12"><div>司机编号：</div></el-col>
          <el-col :span="12"><div>司机名称：</div></el-col>
        </el-row>
        <el-row>
          <el-col :span="12"><div>司机电话：</div></el-col>
          <el-col :span="12"><div>所属机构：</div></el-col>
        </el-row>
      </el-card>
      <el-form style="margin-top:20px">
        <el-form-item label="配置车辆">
          <el-select
            placeholder="请选择车牌号"
          >
            <el-option
              label="区域一"
              value="shanghai"
            ></el-option>
            <el-option
              label="区域二"
              value="beijing"
            ></el-option>
          </el-select>
        </el-form-item>
      </el-form>
      <el-table
        :data="tableData"
        style="width: 100%"
      >
        <el-table-column
          prop="date"
          label="车牌号"
          width="210"
        >
        </el-table-column>
        <el-table-column
          prop="name"
          label="车辆状态"
        >
        </el-table-column>
        <el-table-column
          prop="address"
          label="操作"
          width="170"
          align="center"
        >
        </el-table-column>
      </el-table>
      <div
        slot="footer"
        class="dialog-footer"
        style="text-align: center"
      >
        <el-button
          type="primary"
          class="save-btn"
          @click="disaptchCar"
        >确定</el-button>
        <el-button
          class="cancel-btn"
          @click="cancelDisFn"
        >取消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'CarConfig',
  props: {
    isShow: {
      type: Boolean,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.serchBox {
  width: 584px;
  margin: 0 auto;
  margin-top: 19px;
  .el-select {
    width: 238px;
  }
  margin-bottom: 20px;
}
.workTime {
  white-space: nowrap;
}
.header {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  width: 584px;
  height: 90px;
  background-color: #fbfafa;
  flex-wrap: wrap;
  padding: 21px 52px;
  margin: 0 auto;
  // 使得整体内容距离上部分的距离为20px
  margin-top: -10px;
  .el-input {
    width: 240px;
  }
  div {
    flex: 40%;
    // 使包裹的所有div的上下间距为14px
    // margin-bottom: 14px;
  }
  .num,
  .iphone {
    flex: 60%;
  }
  .num,
  .name {
    margin-bottom: 14px;
  }
  label {
    width: 71px;
    height: 20px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 14px;
    color: #20232a;
    letter-spacing: 0.16px;
    text-align: right;
  }
  span {
    color: #818693;
    font-size: 14px;
  }
}
.pagination {
  margin: 32px 0 44px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  color: #20232a !important;
}
.selected-driver {
  margin-top: 18px;
}
.infoCard {
    padding: 8px 20px;
    line-height: 25px;
    background: #fafafa;
}
.save-btn {
  width: 90px;
  background-color: #e15536;
  border: 1px solid #e15536;
}
.save-btn:hover {
  border: none !important;
}
.cancel-btn {
  width: 90px;
  color: #2a2929;
  border: 1px solid #d8dde3;
  &:hover {
    background: #ffeeeb;
    border: 1px solid #f3917c;
    color: #e15536;
  }
}
</style>
